Hanabi de Doon! Don-chan Puzzle Retail N64 Hack

  These series of patches allow a retail N64 console to run the various Aleck64 titles.  It mimics the hardware registers used for the DIP and hardware switches and pushes N64 controller output to the joystick registers.
  You'll need an 8MB expansion pak, and optionally a 4K or 16K eeprom to save settings and scores.

Controls:
movement	+pad
Button A	B
Button B	A
Button C	R
Start Button	Start
Test Switch	L
Service Switch	Z
Coin Slot 1	c-down
Coin Slot 2	c-up

Patch Application:
  Standalone patches were abandoned in favor of an autopatcher.  This requires either 64bit Windows or something compatible.
  The game was originally stored across two flashram.  You'll need to provide both ua3003-all01.u3 and ua3003-alh01.u4.  (MAME's filenames in doncdoon correspond to these two ICs.)  Although these two files are natively little endian, the patcher accepts either byteorder.  They will be tested against known good SHA512s.  Incorrect or bad files will display an error.
  Select any applicable DIP switches, then output an N64-compatible ROM usable on hardware.  Output is native byteorder (big endian), using a 5101 CIC.

DIP Switch Reference:
  DIP switches are stored at 0xC00 in ROM and can be modified freely without recalculating the checksum.  Unlike most titles, DIP state is read constantly and can be toggled on/off during use--on arcade boards that is ;*)
0100	DIP SW 1	TEST MENU
			Same effect as the Test switch, opening the Test Menu.
0200	DIP SW 2	PAUSE
			Active pause current execution.  Prevents frame advance.

Additional Files:
Hanabi de Doon.txt
	List of the files contained in the ROM and their formats.  No compression is used.
hackery.txt
	Notes taken while creating the patch.  May prove useful to others inspecting it.

Revision Log:
V1.1	‎Aug ‎31, ‎2021
	Gamma correction fix for console.  Aleck's RGB out doesn't use gamma!
	Timestamp added to header at 0x34.
	Change to (bloated) autopatching method.
	Added DIP switch reference.
V1.0	Jan 02, ‎2015
	Original Release

-Zoinkity
